package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;
@Setter
@Getter
@ToString
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    private Department dept ;
    //private Long dept_id;
    private List<Role> roles = new ArrayList<>();

    private boolean status = true ;

    public Long getDeptId(){
        return dept.getId();
    }

}